package com.android.slidingmenuexample.menuactivities;

import com.android.slidingmenuexample.R;
import com.android.slidingmenuexample.R.id;
import com.android.slidingmenuexample.R.layout;
import com.android.slidingmenuexample.R.menu;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.DatePicker;
import android.widget.EditText;

public class SubtitleActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		getWindow().requestFeature(Window.FEATURE_ACTION_BAR);
	    getActionBar().hide();
		
		
		setContentView(R.layout.activity_subtitle);
		
		Button finishButton = (Button)findViewById(R.id.btn_subfinish);
		final EditText subtitlePicker = (EditText)findViewById(R.id.et_subtitle);
		
		finishButton.setOnClickListener(new Button.OnClickListener() {	
			
			@Override
			public void onClick(View v){
			
				getIntent().putExtra("data", subtitlePicker.getText().toString());
				setResult(RESULT_OK, getIntent());
				finish();
			}
		});
		
	}

}
